package com.xh.one2one.knowledgeSystem.service;



import com.xh.one2one.knowledgeSystem.bean.dto.KnowledgeElementDto;
import com.xh.one2one.knowledgeSystem.bean.request.KnowledgeElementRequest;
import com.xh.one2one.knowledgeSystem.model.KnowledgeElement;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;

/**
 * <p>
 * 知识元体系 服务类
 * </p>
 *
 * @author tw
 * @since 2020-12-22
 */
public interface IKnowledgeElementService extends IBaseService<KnowledgeElement> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryKnowledgeElementPage(XhPage page, KnowledgeElementRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public  List queryKnowledgeElement(KnowledgeElementRequest bean);

    void save(List<KnowledgeElementRequest> list);

    void updateSort(List<KnowledgeElementRequest> list);

    List<KnowledgeElementDto> queryTree(String subjectId);

    void batchDeleteByParentId(String id);
}
